package gmu.swe.project.tracker;

import java.io.Serializable;
import java.util.Date;

/**
 * A representation of a Tracker that is sent from the Registry to the Peer.  
 * The Tracker submits this information to the Registry when it comes online,
 * and updates the workload with the stay-alive messages.  
 * @author Christina Bradbury
 * @author
 *
 */
public class TrackerInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String ipAddress;
	private Integer listeningPort;
	private Integer workload;
	private Date timestamp;
	
	/** Accessors **/
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	public Integer getWorkload() {
		return workload;
	}
	public void setWorkload(Integer workload) {
		this.workload = workload;	
	}
	public Date getTimestamp() {
		return timestamp;
	}
	public void setTimeStamp(Date timestamp) {
		this.timestamp = timestamp;	
	}
	public Integer getListeningPort() {
		return listeningPort;
	}
	public void setListeningPort(Integer listeningPort) {
		this.listeningPort = listeningPort;
	}

}
